<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>questions</title>

<style type="text/css">
body,table,hr {
	color: black;
	background: silver;
	font-family: Verdana, sans-serif;
	font-size: medium;
}
</style>

</head>
<body>

	<fieldset>
		<legend>
			<b><c:out value="${requestScope.question}" /></b>
		</legend>
		<form action="quizAction.perform" method="post">
			<c:forEach var="answerNum" begin="0"
				end="${fn:length(answersArray)-1}">
				<input name="answers" type="checkbox" value="${answerNum}">
				<span><c:out value="${answersArray[answerNum]}" /></span>
				<br>
			</c:forEach>
			<input type="submit" name="send" value="Submit"  />
		</form>

	</fieldset>
</body>
</html>